<template>
  <span>{{ text }}</span>
</template>

<script>
export default {
  name: 'YearSemesterShow',
  props: ['year', 'semester'],
  computed: {
    text() {
      const year = parseInt(this.year)
      const semester = parseInt(this.semester)
      return `${year}-${year + 1}学年第${['一', '二'][semester - 1]}学期`
    }
  }
}
</script>

<style scoped>

</style>
